package bean;
/***********************************************************************
 * Module:  opterinfo.java
 * Author:  龙儿
 * Purpose: Defines the Class opterinfo
 ***********************************************************************/

import java.util.*;

/** @pdOid 0093b19f-6c53-44b3-98eb-75353aee73b5 */
public class opterinfo {
   /** @pdOid ee6f3490-26e2-4bfa-9ba1-772189540b67 */
   public long id;
   /** @pdOid bc570671-0671-4fc4-a588-1c42065a3907 */
   public java.lang.String name;
   /** @pdOid 0cd225f7-f1ea-4bd1-b040-f18219143176 */
   public java.lang.String sex = "1";
   /** @pdOid 107bdef4-3176-474d-80e8-2cf899accefe */
   public int age = 20;
   /** @pdOid 9d6011b3-795c-4136-a638-514ad63a6d1b */
   public java.lang.String identityCard = "1111111111111111111111111";
   /** @pdOid 93e86485-75e5-4f79-b9d9-9b88a4c92888 */
   public java.util.Date workdate;
   /** @pdOid 8bcd2f12-b8e5-4fd2-ac96-38d87cb50e33 */
   public java.lang.String tel = "11111111111";
   /** @pdOid 4dbad180-9b65-4b5b-bacc-7e4943c4a2fd */
   public boolean admin = false;
   /** @pdOid f544ed5e-f7c5-438e-b6c5-a332cefe80f6 */
   public java.lang.String password;
   
   /** @pdRoleInfo migr=no name=bookbrrow assc=reference3 coll=java.util.Collection impl=java.util.HashSet mult=0..* */
   public java.util.Collection<bookbrrow> bookbrrow;
   
   
   /** @pdGenerated default getter */
   public java.util.Collection<bookbrrow> getBookbrrow() {
      if (bookbrrow == null)
         bookbrrow = new java.util.HashSet<bookbrrow>();
      return bookbrrow;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorBookbrrow() {
      if (bookbrrow == null)
         bookbrrow = new java.util.HashSet<bookbrrow>();
      return bookbrrow.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newBookbrrow */
   public void setBookbrrow(java.util.Collection<bookbrrow> newBookbrrow) {
      removeAllBookbrrow();
      for (java.util.Iterator iter = newBookbrrow.iterator(); iter.hasNext();)
         addBookbrrow((bookbrrow)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newBookbrrow */
   public void addBookbrrow(bookbrrow newBookbrrow) {
      if (newBookbrrow == null)
         return;
      if (this.bookbrrow == null)
         this.bookbrrow = new java.util.HashSet<bookbrrow>();
      if (!this.bookbrrow.contains(newBookbrrow))
      {
         this.bookbrrow.add(newBookbrrow);
         newBookbrrow.setOpterinfo(this);      
      }
   }
   
   /** @pdGenerated default remove
     * @param oldBookbrrow */
   public void removeBookbrrow(bookbrrow oldBookbrrow) {
      if (oldBookbrrow == null)
         return;
      if (this.bookbrrow != null)
         if (this.bookbrrow.contains(oldBookbrrow))
         {
            this.bookbrrow.remove(oldBookbrrow);
            oldBookbrrow.setOpterinfo((opterinfo)null);
         }
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllBookbrrow() {
      if (bookbrrow != null)
      {
         bookbrrow oldBookbrrow;
         for (java.util.Iterator iter = getIteratorBookbrrow(); iter.hasNext();)
         {
            oldBookbrrow = (bookbrrow)iter.next();
            iter.remove();
            oldBookbrrow.setOpterinfo((opterinfo)null);
         }
      }
   }

}